//
//  UserDescriptionViewController.m
//  YJlandlord
//
//  Created by 文彬 on 2018/6/26.
//  Copyright © 2018年 文彬. All rights reserved.
//

#import "UserDescriptionViewController.h"
#import "WBTextView.h"

@interface UserDescriptionViewController ()

@property (strong, nonatomic) WBTextView *txtView ;

@end

@implementation UserDescriptionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = @"简介";
    
    [self initPageControl];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

#pragma mark 页面相关
- (void)initPageControl{
    
    [StaticTools addNavgationRightButtonWithController:self title:@"保存" font:[UIFont systemFontOfSize:15] color:kMainOriginColor click:^(id param) {
        
    }];
    
    [self.view addSubview:self.txtView];
    [self.txtView makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.equalTo(@15);
        make.right.equalTo(@-15);
        make.height.equalTo(@200);
    }];
}

#pragma mark getter
- (WBTextView*)txtView{
    if (_txtView==nil) {
        _txtView = [[WBTextView alloc]init];
        _txtView.layer.cornerRadius = 5;
        _txtView.layer.borderColor = [UIColor lightGrayColor].CGColor;
        _txtView.layer.borderWidth = 0.5;
        _txtView.font = [UIFont systemFontOfSize:15];
        _txtView.placeholder = @"请输入个人简介信息(500字以内)";
        
    }
    return _txtView;
}

@end
